import React from "react";
import {createStackNavigator} from "@react-navigation/stack";
import Tabbar from "./Tabbar";
import HomeView from "../pages/HomeView/HomeView";
import SquareView from "../pages/SquareView/SquareView";
import MineView from "../pages/MineView/MineView";

const Stack = createStackNavigator();
export default function RootNavigator() {
    return <Stack.Navigator>
        <Stack.Screen 
            name="Tabbar" 
            component={Tabbar} 
            options={{headerShown: false}}
        />
        <Stack.Screen 
            name="HomeView" 
            component={HomeView} 
            options={{headerShown: false}}
        />
        <Stack.Screen 
            name="SquareView" 
            component={SquareView} 
            options={{headerShown: false}}
        />
        <Stack.Screen 
            name="MineView" 
            component={MineView} 
            options={{headerShown: false}}
        />
    </Stack.Navigator>
}